﻿using System;
using $DomainProjectName$.Repositories;
using DDDProject.Aspects;

namespace $DomainProjectName$.Services
{
    /// <summary>
    /// Example of entity service
    /// </summary>
    public class ExampleEntityManager : Entity
    {
        private IExampleEntityRepository _exampleEntityRepository;

        /// <summary>
        /// Example of a repository component injected into constructor.
        /// This is the alternative of the use of the [InjectComponent] attribute.
        /// </summary>
        public ExampleEntityManager(IExampleEntityRepository exampleEntityRepository)
        {
            _exampleEntityRepository = exampleEntityRepository;
        }

        public void AMethod(string aParam)
        {
        }
    }
}
